package entity

import (
	"time"

	"shqsoft.cn/pas3ui/base"
)

//ShBlkhIndi 零售不良客户认定
type ShBlkhIndi struct {
	ID   int        `gorm:"AUTO_INCREMENT;primary_key;column:ID"`
	IDNO string     `gorm:"column:IDNO"`
	CUNM string     `gorm:"column:CUNM"`
	TLNO string     `gorm:"column:TLNO"`
	ADDR string     `gorm:"column:ADDR"`
	POCD string     `gorm:"column:POCD"`
	BLDT *time.Time `gorm:"column:BLDT;type:date;"`
}

//TableName 零售账户表名
func (ShBlkhIndi) TableName() string {
	return "SH_V_INDI_BLKH"
}

func ShBlkhIndiEF() base.EntityFunc {
	return func() interface{} {
		entity := ShBlkhIndi{}
		return &entity
	}
}
func ShBlkhIndiESF() base.EntitiesFunc {
	return func() interface{} {
		var entities []ShBlkhIndi
		return &entities
	}
}

func init() {
	dao := base.NewDefaultDao(ShBlkhIndiEF(), ShBlkhIndiESF(), nil, "ch")
	base.DaoPoolObj.Put("ShBlkhIndi", dao)
}
